Skip to content

Clean up stale documentation and references - #3106

Merged
antonwolfy merged 4 commits into
masterfrom
docs-cleanup
Oct 19, 2026
Merged

antonwolfy merged 4 commits into
masterfrom
docs-cleanup

Conversation

@antonwolfy

Copy link
Copy Markdown
Contributor

This PR cleans up stale documentation and references, one commit per change:

  1. Quick start guide. The testing section suggested pytest -s tests, but there is no top-level tests directory; it now gives python -m pytest dpnp/tests for the source tree and python -m pytest --pyargs dpnp.tests for an installed package. The scikit-build recipes now pass --no-build-isolation to pip install -e ., as scripts/build_locally.py does, so pip doesn't rebuild the package in an isolated environment with build dependencies from PyPI. The guide now says the driver script works on Linux and Windows, and a code-block that didn't render because it had no blank line before its content is fixed.
  2. API reference toctree. doc/reference/index.rst listed 14 pages that don't exist (special, sparse, ndimage, generic, memory, cuda, memoize, kernel, optimize, interoperability, testing, prof, environment, misc); they are removed. doc/reference/polynomials.rst, a placeholder whose entries are all commented out and which routines.rst leaves out on purpose, is marked :orphan:. Both produced Sphinx warnings.
  3. Stale files and references.
    • .github/workflows/Windows-IntelLLVM_3.22.cmake is removed: nothing uses it, and conda-recipe/bld.bat applies only the 3.26 copy.
    • doc/docstring_template.py described a fallback to NumPy and an array printing format that no longer exist; it now shows the docstring layout dpnp uses.
    • The 110 dpctl.tensor references left in dpnp/tensor docstrings and comments now say dpnp.tensor. Every referenced name exists in dpnp.tensor; on the same lines, :module: is fixed to :mod: and a misspelled usm_ndarrays to usm_ndarray.
  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to an issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • Have you checked performance impact of proposed changes?
  • Have you added documentation for your changes, if necessary?
  • Have you added your changes to the changelog?

There is no top-level tests directory, so pytest -s tests found nothing;
point to dpnp/tests and to --pyargs dpnp.tests instead. Pass
--no-build-isolation to the editable install, as build_locally.py does,
mention that build_locally.py also works on Windows, and add the blank
line a code-block needs to render.
doc/reference/index.rst listed 14 pages that do not exist. Also mark the
polynomials placeholder page as orphan, since routines.rst leaves it out
on purpose. Both produced Sphinx warnings.
Remove the unused Windows-IntelLLVM_3.22.cmake, update the docstring
template to the layout dpnp docstrings use, and replace the dpctl.tensor
references left in dpnp/tensor with dpnp.tensor.
antonwolfy added a commit that referenced this pull request Oct 15, 2026
doc/docstring_template.py is current again, dpnp/tensor no longer
mentions dpctl.tensor, and placeholder pages are marked :orphan:.
@antonwolfy antonwolfy self-assigned this Oct 15, 2026
@antonwolfy antonwolfy added this to the 0.21.0 release milestone Oct 15, 2026
@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

View rendered docs @ https://intelpython.github.io/dpnp/index.html

@coveralls

coveralls commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

Coverage Status

Coverage is 82.616% — docs-cleanup into master. No base build found for master.

@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Array API standard conformance tests for dpnp=0.21.0dev15=np2py314h8d9cdd5_6 ran successfully.
Passed: 1376
Failed: 0
Skipped: 6

@vlad-perevezentsev vlad-perevezentsev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Thank you @antonwolfy

@antonwolfy
antonwolfy merged commit 30b894b into master Oct 19, 2026
109 of 110 checks passed
@antonwolfy
antonwolfy deleted the docs-cleanup branch October 19, 2026 14:30
github-actions Bot added a commit that referenced this pull request Oct 19, 2026
This PR cleans up stale documentation and references, one commit per
change:

1. **Quick start guide.** The testing section suggested `pytest -s
tests`, but there is no top-level `tests` directory; it now gives
`python -m pytest dpnp/tests` for the source tree and `python -m pytest
--pyargs dpnp.tests` for an installed package. The scikit-build recipes
now pass `--no-build-isolation` to `pip install -e .`, as
`scripts/build_locally.py` does, so pip doesn't rebuild the package in
an isolated environment with build dependencies from PyPI. The guide now
says the driver script works on Linux and Windows, and a `code-block`
that didn't render because it had no blank line before its content is
fixed.
2. **API reference toctree.** `doc/reference/index.rst` listed 14 pages
that don't exist (`special`, `sparse`, `ndimage`, `generic`, `memory`,
`cuda`, `memoize`, `kernel`, `optimize`, `interoperability`, `testing`,
`prof`, `environment`, `misc`); they are removed.
`doc/reference/polynomials.rst`, a placeholder whose entries are all
commented out and which `routines.rst` leaves out on purpose, is marked
`:orphan:`. Both produced Sphinx warnings.
3. **Stale files and references.**
- `.github/workflows/Windows-IntelLLVM_3.22.cmake` is removed: nothing
uses it, and `conda-recipe/bld.bat` applies only the 3.26 copy.
- `doc/docstring_template.py` described a fallback to NumPy and an array
printing format that no longer exist; it now shows the docstring layout
dpnp uses.
- The 110 `dpctl.tensor` references left in `dpnp/tensor` docstrings and
comments now say `dpnp.tensor`. Every referenced name exists in
`dpnp.tensor`; on the same lines, `:module:` is fixed to `:mod:` and a
misspelled `usm_ndarrays` to `usm_ndarray`. 30b894b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants